package com.sc.nft.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;
import com.sc.nft.annotation.Dict;
import com.sc.nft.annotation.DictValue;
import com.sc.nft.enums.AssetChangeLogEnum;
import com.sc.nft.enums.ReceivedCollectionType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class CollectionChainRecord {

    @ApiModelProperty("记录id")
    private Long id;

    @ApiModelProperty("藏品Id")
    private Long collectionId;

    @ApiModelProperty("一级标题")
    private String firstTitle;

    @ApiModelProperty("缩略图")
    private String creationContent;

    @ApiModelProperty("藏品编号")
    private String numbering;

    @ApiModelProperty("藏品类型")
    private ReceivedCollectionType type;

    @DictValue
    private String typeName;

    @ApiModelProperty("来源地址")
    private String address;

    @ApiModelProperty("来源地址")
    private String chainUrl;

    @ApiModelProperty("目标地址")
    private String toUserAddress;

    @ApiModelProperty("交易HASH")
    private String transactionHash;

    @ApiModelProperty("tokenId")
    private Long tokenId;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
}
